module.exports = {
  success (data = '', message = '') {
    const obj = {
      [this.config('errnoField')]: 1,
      [this.config('errmsgField')]: message,
      data
    }
    this.type = this.config('jsonContentType')
    this.body = obj
    return false
  }
}
